const crypto = require('crypto');

module.exports = {
    passwordEncoder(raw_password) {
        return crypto
            .createHmac('sha256', this.app.config.keys)
            .update(raw_password)
            .digest('hex');
    },
};
